#include "List2.h"

void TestLT()
{
	LTNode* plist = LTInit();

	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	
	LTPopFront(plist);

	/*LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);*/

	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);

	LTPopBack(plist);

	LTPushBack(plist, 7);
	LTPushBack(plist, 8);

	LTNode* pos = LTFind(plist, 1);

	if (pos)
	{
		LTInsert(pos, -3);

		LTErase(pos);
	}
	


	LTPrint(plist);

}


int main()
{

	TestLT();


	return 0;
}